<template>
  <div class="box">
    <div class="cnt">
      <img src="../../assets/images/error_images/404.png" alt="" />
      <el-button class="btn" type="primary" @click="goHome">首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
let $router = useRouter()
const goHome = () => {
  $router.push('/home')
}
</script>

<style scoped lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  img {
    display: block;
    width: 800px;
    height: 400px;
  }
  .cnt {
    margin-left: 55%;
    transform: translateX(-50%);

    .btn {
      margin-left: 200px;
    }
  }
}
</style>
